From: Ray Strode Date: Sat, 17 Sep 2011 19:43:46 +0000 (-0400) Subject: main: Let SWITCH_PANELS keybinding through at login screen X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~7650 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=2e48dbf6ee8003c84e4e78aabfb92bd35f008a00;p=gnome-shell.git main: Let SWITCH_PANELS keybinding through at login screen Users depend on being able to switch focus between the panel and the login screen using ctrl-alt-tab. Because the login screen has no overview, we were short circuiting some code that needs to get run to support ctrl-alt-tab. This commit changes the short-circuit code to only run for user sessions. https://bugzilla.gnome.org/show_bug.cgi?id=659177 --- diff --git a/js/ui/main.js b/js/ui/main.js index 04fb8a249..d926d0a30 100644 --- a/js/ui/main.js +++ b/js/ui/main.js @@ -595,9 +595,9 @@ function _globalKeyPressHandler(actor, event) { return true; } - // Other bindings are only available when the overview is up and + // Other bindings are only available to the user session when the overview is up and // no modal dialog is present. - if (!overview.visible || modalCount > 1) + if (global.session_type == Shell.SessionType.USER && (!overview.visible || modalCount > 1)) return false; // This isn't a Meta.KeyBindingAction yet